Add Method (Folders Collection)
The Add
method creates and returns a new Folder
Syntax
Set objFolder = objFoldersColl.Add(name)
Parameters
objFolder
On successful
return, contains the new Folder object.
objFoldersColl
Required. The
Folders collection object.
name
Required.
String. The display name of the folder.
Remarks
The name
parameter corresponds to the Name
The user must
have permission to Add or Delete
The new Folder
Example
This code
fragment adds a new folder to a user s Inbox:
Dim myInbox, newFolder As Object
Set myInbox = MAPI.Session.Inbox
' add new folder to Inbox
Set newFolder = myInbox.Add Personal Messages
' commit new folder to collection
myInbox.Update